https://discord.umbraco.com logo
Hi all, I was wondering if someone has
# umbraco-chat
b
Hi all, I was wondering if someone has experience with the umbraco media section and Alt texts for multi-language platforms?
m
I seem to remember a thread somewhere that alttext should be contextual.. so should be an alt text at the mediapicker, and that vary by culture? (so not really aplicable to vary by culture in the media area)
b
I agree, the alt text should be placed at a mediapicker. But as far as I know, this is not out of the box possible, right?
r
Well you can reconfigure things but it’s not directly out the box , and I don’t know if I have seen a dead set consistent way of doing this yet.. that everyone agrees and there forever becomes consistent..
m
Think it got lost along the way from media.picker -> media.picker2 -> media.picker3.... Still hints of legacy media picker alt property in the docs... 🙂
@typedMediaPickerSingle.Value("alt")
https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3#multiple-disabled-without-models-builder @using Umbraco.Cms.Core.Models @{ var typedMediaPickerSingle = Model.Value("media"); if (typedMediaPickerSingle != null) { } }
l
We built a block with an image picker and an alt text for this. It's not ideal and I intend to look into this more in the future, but this solution works and because it's just content, you can vary the alt text by culture